<template>
  <svg class="svg-icon" :class="`icon-${name}`" aria-hidden="true">
    <use :xlink:href="iconName" />
  </svg>
</template>

<script setup>
import { computed } from 'vue'
const props = defineProps({
  name: {
    type: String,
    required: true
  }
})
const iconName = computed(() => `#icon-${props.name}`)
</script>
